{% extends "RSPUserBundle::layout.html.twig" %}

{% block fos_user_content %}
{% if error %}
<div>{{ error|trans({}, 'FOSUserBundle') }}</div>
{% endif %}
<center>
<form class="form-horizontal" action="{{ path("fos_user_security_check") }}" method="post" id="loginForm" 
      style=" background-color: #F5F5F5;
    border: medium solid #C4C4C4;
    border-radius: 16px 16px 16px 16px;
    box-shadow: 0 0 8px #999999;
    height: 100%;
    margin: 130px auto 0;
    width: 500px;" >
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
<div class="form-row row-fluid">
    <div class="span12">
        <div class="row-fluid">
            <label class="form-label span12" for="username" style="position:relative;margin: 0 auto; left:-26px;">
                {{ 'Identifiant:'|trans({}, 'FOSUserBundle') }}
                    <span class="icon16 icomoon-icon-user-2 right gray marginR10" style="left: -56px;margin: 0 auto;position: relative;top: 36px;"></span>
                </label>
                <input class="span12" type="text" id="username" name="_username" value="{{ last_username }}"  style="margin: 0 auto;position: relative;left: 30px;" />
            </div>
        </div>
    </div>

    <div class="form-row row-fluid">
        <div class="span12">
            <div class="row-fluid">
                <label class="form-label span12" for="password" style="position:relative;margin: 0 auto; left:-2px;">
                    {{ 'Mot de passe:'|trans({}, 'FOSUserBundle') }}
                        <span class="icon16 icomoon-icon-locked right gray marginR10" style="left: -77px;margin: 0 auto;position: relative;top: 36px;"></span>
                    </label>
                    <input class="span12" type="password" id="password" name="_password" style="margin: 0 auto;position: relative;left: 30px;"/>
                </div>
            </div>
        </div>
        <div class="form-row row-fluid">                       
            <div class="span12">
                <div class="row-fluid">
                    <div class="form-actions">
                        <div class="span12 controls">
                            <input type="checkbox" id="remember_me" name="_remember_me" class="styled" value="on" />{{ 'Active'|trans({}, 'FOSUserBundle') }}
                            <button type="submit" name="_submit" class="btn btn-info right" id="_submit"><span class="icon16 icomoon-icon-enter white"></span> {{ 'Connecter'|trans({}, 'FOSUserBundle') }}</button>
                     
                        </div>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <a href="http://www.resopro.com/app_dev.php/register/">{{ 'Nouveau Compte'|trans({}, 'FOSUserBundle') }} </a>
                    </div>
                </div>
            </div> 
        </div>

      </form></center>
{% endblock fos_user_content %}
